import { HashRouter, Route, Switch } from 'react-router-dom';
import CloudMapIndex from '../page/pageIndex'

const { item } = require("./routeList");


export const Routers = () => {

    return (
        <HashRouter>
            <Switch>
                {
                    item.map((res: any, index: number) => {
                        return <Route
                            key={index}
                            exact
                            path={res.path}
                            component={res.component}
                        />
                    })
                }

                <Route exact path="/" component={CloudMapIndex} />
            </Switch>
        </HashRouter>
    )

}

